home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / examples / exam11 / class1.d < prev    next >
Text File  |  1995-09-27  |  2KB  |  66 lines

  1.  
  2.  
  3.  
  4.  
  5. /*
  6.  *
  7.  *    This source code is CONFIDENTIAL and
  8.  *    PROPRIETARY to Algorithms Corporation. Unauthorized
  9.  *    distribution, adaptation or use    may
  10.  *    be subject to civil and    criminal penalties.
  11.  *
  12.  *    Copyright (c) 1993 Algorithms Corporation
  13.  *    3020 Liberty Hills Drive
  14.  *    Franklin, TN  37064
  15.  *
  16.  *    ALL RIGHTS RESERVED.
  17.  *
  18.  *
  19.  *
  20.  */
  21.  
  22.  
  23. /*  This class definition builds on the previous example with the addition
  24.     of three instance variable declarations.  Notice how the declaration
  25.     looks similar to a normal C structure definition.  Remember that
  26.     instance variables are those variables which will be uniquely allocated
  27.     for each instance of the class.
  28.  
  29.     Notice the nameing convention used.  The leading i (which identifies
  30.     the variable as an instance variable) and the following upper case
  31.     letter make up the normal instance variable names.  The nameing of
  32.     instance variables is just a convention and is not enforced by
  33.     Dynace.  You may use another.
  34.  
  35.     Notice that the instance variable iData has no type declaration.
  36.     When declaring instance (or class) variables, if no type is defined
  37.     Dynace defaults the type to 'object'.
  38. */
  39.  
  40. defclass  Class1  {
  41.     char    iName[30];
  42.     int    iCode;
  43.     iData;
  44. };
  45.  
  46.  
  47.  
  48. /*
  49.  *
  50.  *    This source code is CONFIDENTIAL and
  51.  *    PROPRIETARY to Algorithms Corporation. Unauthorized
  52.  *    distribution, adaptation or use    may
  53.  *    be subject to civil and    criminal penalties.
  54.  *
  55.  *    Copyright (c) 1993 Algorithms Corporation
  56.  *    3020 Liberty Hills Drive
  57.  *    Franklin, TN  37064
  58.  *
  59.  *    ALL RIGHTS RESERVED.
  60.  *
  61.  *
  62.  *
  63.  */
  64.  
  65.  
  66.